<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

   <%
   request.setCharacterEncoding("utf-8");
   //获取表单中name的值
   out.println(request.getParameter("txtName"));
   //获取密码的值
   out.write(request.getParameter("txtPsw").toString());
   //out.println("表单中爱好chHobby的值<br/>");
   String strvls[] = request.getParameterValues("chHobby");
   for(String str:strvls){
	   out.write(str+" ");
   String stredu[] = request.getParameterValues("selectXL");
   for(String str1:stredu){
	   out.write(str1+"");
   }
   }
   %>

</body>
</html>